<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>物业管理软件</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">

	<#include "*/pubcss.ftl">
</head>

<body>
	<#include "*/top.ftl">
	<!-- topbar ends -->
	<div class="container-fluid">
		<div class="row-fluid">
			<#include "*/left.ftl">
			<div id="content" class="span10">
			<!-- content starts -->
			<div>
				<ul class="breadcrumb">
					<li>
						<a href="#">基础资料</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">小区资料</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">资料维护</a>
					</li>
				</ul>
			</div>
		    <form class="form-horizontal"  action="javascript:saveCommunity()">
		    <div class="row-fluid sortable">
			    <button type="submit" class="btn btn-primary">保存</button>
				<button type="button" class="btn btn-primary" onclick="javascript:window.history.back();">返回</button>
		    </div>
			<div class="row-fluid sortable">		
				<div class="box span12">
					<div class="box-header well" data-original-title>
						<h2><i class="icon-user"></i>小区信息</h2>
					</div>
					<div class="box-content">
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">小区名称</label>
									<div class="controls">
									    <input class="input-xlarge focused" id="cid" name="community.cid" type="hidden" value="${(community.cid)?if_exists}">
										<input class="input-xlarge focused" id="cname" name="community.cname" type="text" value="${(community.cname)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">状态</label>
								<div class="controls form-horizontal">
								  <#if ((community.state)?if_exists)!='1'>
								  <label class="radio">
									<input type="radio" name="state" id="state" value="0" checked="">
									启用
								  </label>
								  <label class="radio">
									<input type="radio" name="state" id="state" value="1">
									禁用
								  </label>
								  <#else>
								  <label class="radio">
									<input type="radio" name="state" id="state" value="0">
									启用
								  </label>
								  <label class="radio">
									<input type="radio" name="state" id="state" value="1" checked="">
									禁用
								  </label>
								  </#if>
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span12">
								<div class="control-group form-horizontal">
									<label class="control-label" for="focusedInput">小区地址</label>
									<div class="controls">
										<input class="span11 input-xlarge focused" id="caddr" name="community.caddr" type="text" value="${(community.caddr)?if_exists}">
									</div>
								</div>
							</div>
						</div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">联系人</label>
									<div class="controls">
										<input class="input-xlarge focused" id="person" name="community.person" type="text" value="${(community.person)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">联系电话</label>
								<div class="controls">
								  <input class="input-xlarge focused" id="tel" name="community.tel" type="text" value="${(community.tel)?if_exists}">
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span12">
								<div class="control-group form-horizontal">
									<label class="control-label" for="focusedInput">备注</label>
									<div class="controls">
										<textarea class="success" id="xqcontent" rows="5">${(community.content)?if_exists}</textarea>
									</div>
								</div>
							</div>
						</div>
                      </div> 
					</div>
				</div><!--/span-->
			
			</div><!--/row-->
		    </form> 
       
			<!-- content ends -->
			</div><!--/#content.span10-->
		</div><!--/fluid-row-->

		
	</div><!--/.fluid-container-->

	<#include "*/infotemplate/alert.ftl">
    <#include "*/infotemplate/saveinfo.ftl">
	<#include "*/pubjs.ftl">
	<script src='${base}/script/base/community_edit.js'></script>	
		
</body>
</html>
